package com.car.service.impl;

import com.car.dao.SubscribeMapper;
import com.car.entity.Subscribe;
import com.car.service.ISubscriService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("subscriService")
public class SubscriService implements ISubscriService {
    @Autowired
    @Qualifier("subscribeMapper")
    private SubscribeMapper subscribeMapper;


    @Override
    public List<Subscribe> findAll() {
        return subscribeMapper.findAll();
    }

    @Override
    public Subscribe subById(int sid) {
        return subscribeMapper.subById(sid);
    }

    @Override
    public int subupdate(Subscribe subscribe) {
        return subscribeMapper.subupdate(subscribe);
    }

    @Override
    public List<Subscribe> fuzzy(Subscribe subscribe) {
        return subscribeMapper.fuzzy( subscribe);
    }

    @Override
    public List<Subscribe> make() {
        return subscribeMapper.make();
    }
}
